/*
 * @Author: AiLjx
 * @Date: 2022-06-30 18:52:34
 * @LastEditors: AiLjx
 * @LastEditTime: 2022-06-30 19:08:15
 */
// eslint-disable-next-line import/no-anonymous-default-export
export default {
  'GET /user': { name: 'AiLjx', age: 18 },
  'POST /user/login': (req, res) => {
    console.log(req.body);
    if (req.body.username === 'ailjx' && req.body.password === '123') {
      res.send({
        ok: 1,
      });
    } else {
      res.send({
        ok: 0,
      });
    }
  },
};
